<template>
  <ul class="todo-main">
    <my-item
      v-for="todo in TodoList"
      :key="todo.id"
      :todo="todo"
      :deleteTodo="deleteTodo"
      :checkedTodo="checkedTodo"
    ></my-item>
  </ul>
</template>

<script>
import Item from "./MyItem";

export default {
  name: "MyList",
  props: ["TodoList", "deleteTodo", "checkedTodo"],
  components: {
    "my-item": Item,
  },
};
</script>

<style scoped lang="less">
/*List*/
.todo-main {
  margin-left: 0px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px;
}

.todo-empty {
  height: 40px;
  line-height: 40px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding-left: 5px;
  margin-top: 10px;
}
</style>
